package com.ram.mapper;

import com.ram.pojo.Building;
import com.ram.pojo.BuildingDTO;
import com.ram.pojo.BuildingVO;
import org.apache.ibatis.annotations.Mapper;
import java.util.List;

@Mapper
public interface BuildingMapper {
    List<Building> list();
    Building getById(Integer id);
    void insert(Building building);
    void update(Building building);
    void deleteById(Integer id);

    // 分页+条件查询
    List<BuildingVO> pageQuery(BuildingDTO dto);
    long countPageQuery(BuildingDTO dto);
} 